package response;

import core.Constants;
import core.GamePacket;

/**
 * @author Gary
 */
public class ResponseQuestionRatio extends GameResponse {

    private short[] ratio;

    public ResponseQuestionRatio() {
        code = Constants.SMSG_QUESTION_RATIO;
    }

    public void setRatio(short[] ratio) {
        this.ratio = ratio;
    }

    @Override
    public byte[] createResponse() {
        GamePacket packet = new GamePacket(code);
        packet.addUint16(ratio[0]);
        packet.addUint16(ratio[1]);

        return packet.getBytes();
    }
}

